package org.crazyit.activiti_d2._5_DatabaseType;

import org.activiti.engine.ProcessEngineConfiguration;

public class DatabaseType {

    public static void main(String[] args) {

        //1. 读取schemaUpdate-false.xml 文件, 并创建流程引擎配置实例
        ProcessEngineConfiguration config = ProcessEngineConfiguration.createProcessEngineConfigurationFromResource("database-type.xml");

        //2. 启动Activiti
        //会因为与jdbcUrl 属性值指定的数据库的类型与databaseType 属性值指定的类型而抛异常
        config.buildProcessEngine();

    }

}
